package cn.rongdao.jrkabao.ui.takephoto.adapter;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;
import com.mifengkong.frtools.util.FRImageLoad;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.takephoto.CashValidataTipBean;

/**
 * Created by jack on 2017/6/28
 */

public class CashValidataTipViewHolder extends FRBaseRecyclerViewHolder<CashValidataTipBean> {

    private ImageView ivAvatar;
    private TextView tvTitle;

    public CashValidataTipViewHolder(View view) {
        super(view);
        ivAvatar = findView(R.id.ivt_iv_avatar);
        tvTitle = findView(R.id.ivt_tv_title);
    }

    @Override
    protected void onItemDataUpdated(CashValidataTipBean cashValidataTipBean) {
        FRImageLoad.loadImage(cashValidataTipBean.getImg(), ivAvatar);
        tvTitle.setText(cashValidataTipBean.getDesc());
    }
}
